package cn.tedu.ykmall.admin.commodity.webapi.mapper;

import cn.tedu.ykmall.pojo.commodity.dto.AdminCategoryByDepthDTO;
import cn.tedu.ykmall.pojo.commodity.dto.AdminCategoryByParentIdDTO;
import cn.tedu.ykmall.pojo.commodity.entity.Category;
import cn.tedu.ykmall.pojo.commodity.vo.AdminCategoryDetailsVO;
import io.swagger.models.auth.In;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CategoryMapper {
    /**
     * 新增Category表
     * @param category
     * @return
     */
    int insertCategory(Category category);

    /**
     * 根据depth查询所有id，name
     * @param depth
     * @return
     */
    List<AdminCategoryByDepthDTO> selectCategoryByDepth(Integer depth);

}
